package com.xin.di.uav.common.enums;

import lombok.Getter;

/**
 * @author ta136817
 */
@Getter
public enum UserCompanyStatusEnum {
    /**
     * 优惠券状态枚举
     */
    WAITING_FOR_REVIEW("等待审核", (byte) 0),
    REVIEW_REJECTION("审核驳回", (byte) 1),
    NORMAL("正常", (byte) 2),
    STOP_COOPERATION("停止合作", (byte) 3);


    private final String desc;
    private Byte value;

    public void setValue(Byte value) {
        this.value = value;
    }

    UserCompanyStatusEnum(String desc, Byte value) {
        this.desc = desc;
        this.value = value;
    }

    public static String getDesc(Byte value) {
        for (UserCompanyStatusEnum ele : values()) {
            if (ele.getValue().equals(value)) {
                return ele.getDesc();
            }
        }
        return null;
    }
}
